package com.itcs.trading.mapper;

import java.util.Map;

import org.apache.ibatis.annotations.Update;

import com.itcs.trading.model.UserInfo;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);
    /**
     * 更新扣款方式
     * zhaojins 20171224
     * */
    @Update(" update user_customer_info set pay_method = #{payMethod,jdbcType=TINYINT} where user_id = #{userId,jdbcType=BIGINT}")
    int updaetPayType(Map<String,Object> paMap);

    /**
     * 通过手机号查找用户信息
     * @param mobile
     * @return
     */
	UserInfo selectByPhoneNumber(String mobile);
}